gdk: fix content_formats_get_mime_types annotation
authorBilal Elmoussaoui <bil.elmoussaoui@gmail.com>
Fri, 30 Apr 2021 11:42:02 +0000 (11:42 +0000)
committerBilal Elmoussaoui <bil.elmoussaoui@gmail.com>
Fri, 30 Apr 2021 13:43:17 +0000 (15:43 +0200)
gdk/gdkcontentformats.c

index d8e590e14fed53e1bbe412da2ca909b319a934ce..1f059f109f3b561e6cd86867d3cc89a9248586c4 100644 (file)
@@ -480,7 +480,7 @@ gdk_content_formats_get_gtypes (const GdkContentFormats *formats,
 /**
  * gdk_content_formats_get_mime_types:
  * @formats: a `GdkContentFormats`
- * @n_mime_types: (out) (allow-none): optional pointer to take the
+ * @n_mime_types: (out) (optional): optional pointer to take the
  *     number of mime types contained in the return value
  *
  * Gets the mime types included in @formats.
@@ -488,7 +488,7 @@ gdk_content_formats_get_gtypes (const GdkContentFormats *formats,
  * Note that @formats may not contain any mime types, in particular
  * when they are empty. In that case %NULL will be returned.
  *
- * Returns: (transfer none) (nullable): %NULL-terminated array of
+ * Returns: (transfer none) (nullable) (array length=n_mime_types zero-terminated=1): %NULL-terminated array of
  *     interned strings of mime types included in @formats or %NULL
  *     if none.
  */